package com.tju.t5.entity;

import java.util.HashSet;
import java.util.Set;


/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User  implements java.io.Serializable {


    // Fields    

     private Integer idUser;
     private Role role;
     private String employeeId;
     private String username;
     private String password;
     private String name;
     private Boolean gender;
     private String position;
     private String department;
     private String telphone;
     private String cellphone;
     private String email;
     private Set subscribes = new HashSet(0);


    // Constructors

    /** default constructor */
    public User() {
    }

	/** minimal constructor */
    public User(Role role, String employeeId, String username, String password, String email) {
        this.role = role;
        this.employeeId = employeeId;
        this.username = username;
        this.password = password;
        this.email = email;
    }
    
    /** full constructor */
    public User(Role role, String employeeId, String username, String password, String name, Boolean gender, String position, String department, String telphone, String cellphone, String email, Set subscribes) {
        this.role = role;
        this.employeeId = employeeId;
        this.username = username;
        this.password = password;
        this.name = name;
        this.gender = gender;
        this.position = position;
        this.department = department;
        this.telphone = telphone;
        this.cellphone = cellphone;
        this.email = email;
        this.subscribes = subscribes;
    }

   
    // Property accessors

    public Integer getIdUser() {
        return this.idUser;
    }
    
    public void setIdUser(Integer idUser) {
        this.idUser = idUser;
    }

    public Role getRole() {
        return this.role;
    }
    
    public void setRole(Role role) {
        this.role = role;
    }

    public String getEmployeeId() {
        return this.employeeId;
    }
    
    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getUsername() {
        return this.username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public Boolean getGender() {
        return this.gender;
    }
    
    public void setGender(Boolean gender) {
        this.gender = gender;
    }

    public String getPosition() {
        return this.position;
    }
    
    public void setPosition(String position) {
        this.position = position;
    }

    public String getDepartment() {
        return this.department;
    }
    
    public void setDepartment(String department) {
        this.department = department;
    }

    public String getTelphone() {
        return this.telphone;
    }
    
    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getCellphone() {
        return this.cellphone;
    }
    
    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }

    public Set getSubscribes() {
        return this.subscribes;
    }
    
    public void setSubscribes(Set subscribes) {
        this.subscribes = subscribes;
    }
   








}